export interface ResponseBaseData {
  code: number
  message: string
  ok: boolean
}

export interface recordsData {
  id: number
  createTime: string
  updateTime: string
  username: string
  password: string
  roleName: string
}

export interface addOrUpdateUserData {
  id?: number
  name?: string
  username: string
  password: string
}

export interface ResponseUserList extends ResponseBaseData {
  data: {
    records: recordsData[]
    total: number
    size: number
    current: number
    searchCount: boolean
    pages: number
  }
}

export interface roleObj {
  id: number
  createTime: string
  updateTime: string
  roleName: string
}

export interface ResponseRole extends ResponseBaseData {
  data: {
    assignRoles: roleObj[]
    allRolesList: roleObj[]
  }
}

export interface setUserRoleRequestData {
  roleIdList: number[]
  userId: number
}
